<template>
    <div>
        欢迎进入 企业人员管理系统
    </div>
</template>
<script>
    export default {
        name: 'dashboard-console',
        created() {
            this.checkData();
        },
        methods:{
            checkData(){
                let arrA = [
                    {
                        name:'aaa',
                        age:11,
                        sex:"xx"
                    }, {
                        name:'aaa',
                        age:11,
                        sex:"xx"
                    }, {
                        name:'aaa1',
                        age:11,
                        sex:"xx"
                    }
                ]
              for (let i in arrA){
                  let newTable = []
                  // console.log(arrA[i].name);//属性名称为name的值
                  for (let j in arrA[i]){ //遍历属性名
                      console.log(j);
                      // console.log(arrA[i].j);
                      delete arrA[i].name;
                  }
              }
                console.log(arrA);

            }
        }
    }
</script>
